import request from "@/request/api";

//巡视点接口
//1.巡视点查询接口
export function queryPatrolPointList(data) {
  return request({
    url: "/eam-service-plan/patrol/point/queryList",
    method: "get",
    params: data,
  });
}
//1.巡视点详情
export function queryPatrolPointDetail(data) {
  return request({
    url: "/eam-service-plan/patrol/point/selectOne",
    method: "get",
    params: data,
  });
}
//2、巡视点新增或修改接口
export function addOrUpdatePatrolPoint(data) {
  return request({
    url: "/eam-service-plan/patrol/point/saveOrUpdate",
    method: "post",
    data: data,
  });
}
//2、、巡视点删除接口
export function deletePatrolPoint(data) {
  return request({
    url: "/eam-service-plan/patrol/point/deleteById",
    method: "delete",
    params: data,
  });
}

//巡视计划接口
//1.巡视计划查询接口
export function queryPatrolPlanList(data) {
  return request({
    url: "/eam-service-plan/patrol/plan/queryList",
    method: "get",
    params: data,
  });
}
//1.巡视计划详情
export function queryPatrolPlanDetail(data) {
  return request({
    url: "/eam-service-plan/patrol/plan/selectOne",
    method: "get",
    params: data,
  });
}
//2、巡视计划新增或修改接口
export function addOrUpdatePatrolPlan(data) {
  return request({
    url: "/eam-service-plan/patrol/plan/saveOrUpdate",
    method: "post",
    data: data,
  });
}
//2、、巡视计划删除接口
export function deletePatrolPlan(data) {
  return request({
    url: "/eam-service-plan/patrol/plan/deleteById",
    method: "delete",
    params: data,
  });
}

//2、、巡视计划启用/停用接口
export function startOrStopPlan(data) {
  return request({
    url: "/eam-service-plan/patrol/plan/startOrStop",
    method: "get",
    params: data,
  });
}

//2、、巡视计划下发接口
export function issuePlan(data) {
  return request({
    url: "/eam-service-plan/patrol/plan/issue",
    method: "get",
    params: data,
  });
}
